{% load latest %}
<!DOCTYPE html 
	PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
	<title>VidaStream{% block title %}{% endblock %}</title>
	<link rel="stylesheet" type="text/css" media="screen" href="/media/stream/css/base.css" />
	{% block extrastyle %}{% endblock %}
	{% block extrahead %}{% endblock %}
</head>

<body>
	<div id="header">
	{% block header %}
		<h1><a href="/" class="vidastream">VidaStream</a></h1>

		<div id="user_tools">
		{% block user_tools %}
			<p>Welcome, <strong>{% if user.is_authenticated %}{{ user.username }}{% else %}Guest{% endif %}</strong> / </p>
			<ul>
				{% if user.is_authenticated %}
				<li><a href="/logout/">logout</a> / </li>
				<li><a href="/settings/">settings</a> / </li>
				{% else %}
				<li><a href="/login/">login</a> / </li>
				<li><a href="/accounts/register/">register</a> / </li>
				{% endif %}
				<li><a href="/help/">help</a></li>
			</ul>
		{% endblock %}
		</div>
	{% endblock %}
	</div>
	{% block content_controls %}
	{% endblock %}
	<div id="container">
		<div id="content">
		{% block content %}
		{% endblock %}
		</div>
	</div>

	<div id="footer">
	{% block footer %}
		<div class="footer_contents">
			<a href="/">Home</a><span class="sep">|</span>
			<a href="/about/">About Us</a><span class="sep">|</span>
			<a href="/contact/">Contact</a><span class="sep">|</span>
			<a href="/tos/">Terms of Use</a>
		</div>
		<p id="copyright">&copy; 2007 World Domination Inc. All Rights Reserved</p>
	{% endblock %}
	</div>

</body>
</html>
